﻿<UserControl
    x:Class="CalciumTemplateApp.AboutView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:c="clr-namespace:DanielVaughan.Windows;assembly=Calcium.Phone"
    mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="768"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    c:VisualStateUtility.VisualState="{Binding VisualState}">

    <Grid x:Name="ContentPanel" Background="Transparent">
        <Grid.RowDefinitions>
            <RowDefinition Height="*" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        
        <StackPanel>
            <TextBlock 
                Text="{Binding Resources.Instance.Page_About_AppDescription, 
                                      Source={StaticResource Resources}, 
                                      FallbackValue=description}"
                TextWrapping="Wrap" />
            <TextBlock             
                Text="{Binding Resources.Instance.Page_About_CreatedBy, 
                                      Source={StaticResource Resources}, 
                                      FallbackValue=description}"
                TextWrapping="Wrap" 
                Style="{StaticResource PhoneTextAccentStyle}" 
                Margin="0" />
            <TextBlock             
                Text="{Binding Version, FallbackValue=1.0}"
                TextWrapping="Wrap" 
                Style="{StaticResource PhoneTextSmallStyle}"
                Margin="0,20" />
        </StackPanel>
        
        <!-- Remove the Calcium link if you wish. That's perfectly fine.
             If you're using Calcium please let us know at dbvaughan AT gmail
             and we'll promote you app on the Calcium website. -->
        <StackPanel 
            Grid.Row="1"
            Orientation="Horizontal" VerticalAlignment="Bottom">
            <TextBlock Foreground="{StaticResource PhoneSubtleBrush}">Fortified with</TextBlock>
            <HyperlinkButton Content="Calcium" 
                             NavigateUri="http://www.calciumsdk.net"
                             TargetName="_blank"
                             Foreground="{StaticResource PhoneSubtleBrush}" />
        </StackPanel>
    </Grid>
 
</UserControl>